package cn.itsource.hrm.dto;

import cn.itsource.hrm.util.ValidatorUtils;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
public class UserRegisterDto {
    @NotEmpty(message = "手机号不能为空")
    @Pattern(regexp = ValidatorUtils.REG_Moblie,message = "手机号不合法")
    private String mobile;

    @NotEmpty(message = "密码不能为空")
    private String password;

    private Integer regChannel = 1;

    // 短信验证码
    @NotEmpty(message = "短信验证码不能为空")
    private String smsCode;
}
